/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lk.uom.theta.business;

import javax.ejb.Stateless;
import javax.ejb.LocalBean;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import lk.uom.theta.entity.H1N1Incident;

/**
 * Session bean to manage H1N1Incident entities.
 * 
 * @author Umesh Liyanage
 */
@Stateless
@LocalBean
public class H1N1IncidentEAO {

    @PersistenceContext
    private EntityManager em;
    
    public boolean create(H1N1Incident incident) {
        em.persist(incident);
        return incident.getId()!=null;
    }
    
}
